package com.smart.enums;

/**
 * 抬杆设备厂家服务枚举
 */
public enum BarrierGateDeviceServiceEnum {
    TANGCHAO("tangchao","唐朝"),smart("smart","天源");

    private String code;
    private String name;

    BarrierGateDeviceServiceEnum(String code, String name){
        this.code = code;
        this.name = name;
    }

    public static String getName(String code){
        for (BarrierGateDeviceServiceEnum obj : BarrierGateDeviceServiceEnum.values()) {
            if(code.equals(obj.getCode())){
                return obj.getName();
            }
        }
        return "";
    }

    public String getName() {
        return name;
    }

    public String getCode() {
        return code;
    }
}
